package java19_5_9.com.huweilong.io.read_file;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Scanner;

/**
 * @author 是阿秋啊
 * @date 2022/05/09 19:50
 **/
public class ReadText {
    public static void main(String[] args) throws IOException {
        try (InputStream is = new FileInputStream("hello.txt")) {
            Scanner sc = new Scanner(is, "UTF-8");
            while (sc.hasNext()) {
                System.out.println(sc.nextLine());
                //   System.out.println(sc.next());
            }
        }
    }
}
